<?php
error_reporting(0);
$isadmin = 1;
include '../comm/config.php';
include '../comm/checkpostandget.php';
include 'check.php';

if($_GET['commission']>0 || $_GET['carry']>0 || $_GET['userfunds']>0 || $_GET['userno']>0){
    $sql="update ".$BIAOTOU."tempdata set commission='".$_GET['commission']."',carry='".$_GET['carry']."',userfunds='".$_GET['userfunds']."',userno='".$_GET['userno']."'";
	mysql_query($sql);
	mysql_close();
	exit;
}

function c($sql,$html){
    $query=mysql_query($sql);
    $row=mysql_fetch_array($query);
    $num=$row[0]?$row[0]:0;
	$num=round($num,2);
	if($num>0){
	    return $num;
	}
	else{
	    return 0;
	}
}
//淘宝客pid查询
$sql = "select userpid from " . $BIAOTOU . "taobaoset";
$rs = mysql_query($sql);
$row = mysql_fetch_array($rs);
$userpid = $row[0]?$row[0]:0;
if(empty($userpid)){
	echo "<script language=\"javascript\"> if (confirm(\"淘宝客设置里的必须项【简易淘宝联盟PID】，亲还没填写哦\")){ 
window.location.href=\"taobaokeset.php\"}</script>";
}

//淘宝总收益
$sql = "select sum(commission) as taobao_zsy from " . $BIAOTOU . "tradelist";
$rs = mysql_query($sql);
while ($row = mysql_fetch_array($rs)) {
	$taobao_zsy = $row["taobao_zsy"];
}
//联盟总收益
$sql = "select sum(commission) as mall_zsy from " . $BIAOTOU . "mall_order where stat_desc='核对有效'";
$rs = mysql_query($sql);
while ($row = mysql_fetch_array($rs)) {
	$mall_zsy = $row["mall_zsy"];
}
//网站总收益
$web_zsy = $taobao_zsy + $mall_zsy;
//网站总支出
$sql = "select sum(je) as web_zzc from " . $BIAOTOU . "mingxi where shijian='交易返现' or shijian='推广佣金' or shijian='注册赠送'";
$rs = mysql_query($sql);
while ($row = mysql_fetch_array($rs)) {
	$web_zzc = $row["web_zzc"];
}

//淘宝交易记录数
$sql = "select count(id) as taobao_tradenum from " . $BIAOTOU . "tradelist";
$rs = mysql_query($sql);
while ($row = mysql_fetch_array($rs)) {
	$taobao_tradenum = $row["taobao_tradenum"];
}
//商城交易记录数
$sql = "select count(id) as mall_tradenum from " . $BIAOTOU . "mall_order";
$rs = mysql_query($sql);
while ($row = mysql_fetch_array($rs)) {
	$mall_tradenum = $row["mall_tradenum"];
}
//商城交易有效记录数
$sql = "select count(id) as mall_order_ok from " . $BIAOTOU . "mall_order where stat_desc='核对有效'";
$rs = mysql_query($sql);
while ($row = mysql_fetch_array($rs)) {
	$mall_order_ok = $row["mall_order_ok"];
}
//商城交易未核对记录数
$sql = "select count(id) as mall_order_no from " . $BIAOTOU . "mall_order where stat_desc='未核对'";
$rs = mysql_query($sql);
while ($row = mysql_fetch_array($rs)) {
	$mall_order_no = $row["mall_order_no"];
}

//已经完成确认的淘宝交易
$sql = "select count(id) as tradenum_ok from " . $BIAOTOU . "tradelist where outer_code<>''";
$rs = mysql_query($sql);
while ($row = mysql_fetch_array($rs)) {
	$tradenum_ok = $row["tradenum_ok"];
}

//会员账户总金额
$sql = "select sum(money) as user_money_sum from " . $BIAOTOU . "user";
$rs = mysql_query($sql);
$row = mysql_fetch_array($rs);
$user_money_sum = $row[0]?$row[0]:0;

//提现审核中总金额
$sql = "select sum(txje) as tixian_status_0_sum from " . $BIAOTOU . "tixian where txstate=0";
$rs = mysql_query($sql);
$row = mysql_fetch_array($rs);
$tixian_status_0_sum = $row[0]?$row[0]:0;

$need_to_pay=$user_money_sum+$tixian_status_0_sum;

$banben=include('../data/banben.php');
$banben=date('Y年m月d日',strtotime($banben));

$path=dirname(__FILE__);
$path=str_replace('/','\\',$path);
$path_arr=explode('\\',$path);
$admin_name=array_pop($path_arr);

$sql="select lastloginip from ".$BIAOTOU."duoduo2010 where Id=1";
$query=mysql_query($sql);
$row=mysql_fetch_array($query);
$lastloginip =$row[0];

$install=is_dir('../install');


//待审核订单
$sql="select count(Id) from ".$BIAOTOU."tradelist where checked=1";
$checked_trade_num=c($sql);

//待回复站内信
$sql="select count(Id) from ".$BIAOTOU."msg where see=0 and ddusername='网站客服'";
$wait_see_num=c($sql);

//待处理兑换
$sql="select count(id) from ".$BIAOTOU."dhdingdan where status=0";
$wait_do_duihuan=c($sql);

//待处理提现
$sql="select count(Id) from ".$BIAOTOU."tixian where txstate=0";
$wait_do_tixian=c($sql);

//成功提现总额
$sql="select sum(txje) from ".$BIAOTOU."tixian where txstate=1";
$tixian_sum=c($sql,0);

//注册会员总数
$sql="select count(Id) from ".$BIAOTOU."user";
$user_sum=c($sql,0);

//淘宝订单交易额
$sql="select sum(pay_price) from ".$BIAOTOU."tradelist";
$tao_goods_sum=c($sql,0);

//商城订单交易额
$sql="select sum(sales) from ".$BIAOTOU."mall_order where stat_desc='核对有效'";
$mall_goods_sum=c($sql,0);

//商城为认领订单
$sql="select count(id) from ".$BIAOTOU."mall_order where u_id=''";
$mall_no_user=c($sql,0);

$sql="select * from ".$BIAOTOU."tempdata where id=1";
$query=mysql_query($sql);
$tempdata=mysql_fetch_array($query);

$opts = array('http'=>array('method'=>"GET",'timeout'=>2,));
$context = stream_context_create($opts);
$open =file_get_contents(base64_decode("aHR0cDovL3BheS5kdW9kdW8xMjMuY29tL2Nrb3Blbi5waHA="), false, $context);

$sql="select * from ".$BIAOTOU."adminlog order by id desc limit 5";
$query=mysql_query($sql);
while($row=mysql_fetch_array($query)){
    $adminlog[]=$row;
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="images/skin.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {

	margin-left: 0px;

	margin-top: 0px;

	margin-right: 0px;

	margin-bottom: 0px;

	background-color: #EEF2FB;
	font-size:12px;	
}

.left_txt a:hove{ font-size:16px; color:#FF0000;}
.banben {color: #FF0000; font-size:14px; font-weight:bold}
.S3 {color: #009900;}
img { border:0px;}
</style>
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/facebox.js" type="text/javascript"></script>
<script type="text/javascript">
function countDown(maxtime, fn) {
	maxtime=31536000-maxtime;
    var timer = setInterval(function() {
        if (maxtime >= 0) {
		    d=parseInt(maxtime/3600/24);
            h=parseInt((maxtime/3600)%24);
            m=parseInt((maxtime/60)%60);
            s=parseInt(maxtime%60);
            msg = "有效期为"+d+"天"+h + "小时" + m + "分" + s + "秒";
            fn(msg);
            --maxtime;
        } else {
            clearInterval(timer);
            fn("已失效!");
        }
    },1000);
}
jQuery(document).ready(function($) {
    $('a[rel*=facebox]').facebox();
	<?php
    if(APIJK=="1"){
    ?>
	$.get('../ajax.php',{'cache_dir':'data/Apicache','fun':'cacheSize'},function(data){
	    $('#cacheSize').html(data+' M');
		if(parseInt(data)>parseInt(<?=APISIZE?>)){
		     $('#doclear').html('缓存已经超过设置值请马上清除缓存');
		}
	});
    <?php }?>
});
</script>
</head>
<body>

<?php if(file_exists('update.php')){?>
<table width="700" border="0" align="center" style="border:#999999 1px solid;color:#FF0000; font-size:12px; padding-left:10px;">
<tr>
<td width="75" height="14"><img src="images/ipsecurity.gif" /></td>
<td width="613" height="26">您好，你的网站还没有升级完整，请点击 &quot;继续升级&quot; 以完成最后一步。<a href="update.php" style="text-decoration:none; font-weight:bold; "> 继续升级</a><br>如果点击后还无法进入后台，请登录FTP删除后台目录内的update.php文件即可！</td>
</tr>
</table>
<?php exit();?>

<?php }elseif(file_exists('../update.php')){?>
<table width="700" border="0" align="center" style="border:#999999 1px solid;color:#FF0000; font-size:12px; padding-left:10px;">
<tr>
<td width="75" height="14"><img src="images/ipsecurity.gif" /></td>
<td width="613" height="26">您好，你的网站还没有升级完整，请点击 &quot;继续升级&quot; 以完成最后一步。<a href="../update.php" style="text-decoration:none; font-weight:bold; "> 继续升级</a><br>如果点击后还无法进入后台，请登录FTP删除根目录下的update.php文件即可！</td>
</tr>
</table>
<?php exit();}?>


<table width="100%" border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>

    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">

      <tr>

        <td height="31"><div class="titlebt">后台中心</div></td>
      </tr>

    </table></td>

    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>

  <tr>

    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>

    <td valign="top" bgcolor="#F7F8F9">
	<div class="c_left">
	<!--安全监控-->
	     <?php if($admin_name=='admin'){?><div class="box_a"><span>安全提示：请及时更改后台路径目录admin。</span></div><?php }?>
		 <?php if($install==1){?><div class="box_a"><span>安全提示：请及时删除install文件。</span></div><?php }?>
		<!--使用快捷栏-->
<div class="box_l">
	 	  <table cellspacing="0" width="100%" style="border:1px  solid #DCEAF7;">
            <tr>
              <td width="811" height="25" bgcolor="E9F2FB" class="bigtext c_biaoti" >&nbsp;站务快捷  <span style="font-size:12px; font-weight:normal"><a href="#mydiv" rel="facebox"  style="color:#FF6600">设置向导 </a></span></td>
            </tr>
            <tr>
              <td colspan="2" valign="top" style="padding:3px 10px;" class="kuaijie">
					 <ul>
					 	<li><a href="#">官方便捷：</a></li>
						<li><a href="http://soft.duoduo123.com/help" target="_blank">帮助中心</a></li>
						<li><a href="http://bbs.duoduo123.com/thread.php?fid=39" target="_blank">提交问题</a></li>
						<li><a href="http://bbs.duoduo123.com/thread-htm-fid-69.html" target="_blank">风向标</a></li>
						<li><a href="http://bbs.duoduo123.com/thread-htm-fid-64.html" target="_blank">多多黑板报</a></li>
						<li><a href="http://bbs.duoduo123.com/thread-htm-fid-37.html" target="_blank">发展与建议</a></li>
					 </ul>	
					 <ul>
					 	<li><a href="#">站务便捷：</a></li>
						<li><a href="tradelist.php" >淘宝订单</a></li>
						<li><a href="mall/mallorders.php" >商家订单</a></li>
						<li><a href="userlist.php" >会员列表</a></li>
						<li><a href="mall/mall_comment.php" >评价列表</a></li>
						<li><a href="duihuan/admin.php?act=duihuan_list" >兑换记录</a></li>
						<li><a href="article/article.add.php?act=add" >添加文章</a></li>
					 </ul>						 		  
			  </td>
            </tr>
          </table>
	 	</div>
		<!--end-->
		<!--操作提示-->
<div class="box_l">
	 	  <table cellspacing="0" width="100%" style="border:1px  solid #DCEAF7;">
            <tr>
              <td width="811" height="25" bgcolor="E9F2FB" class="bigtext c_biaoti" >&nbsp;站务处理</td>
            </tr>
            <tr>
              <td colspan="2" valign="top" style="padding:3px 10px;" class="tishi">
              <?php if($checked_trade_num==0 && $wait_see_num==0 && $wait_do_duihuan==0 && $wait_do_tixian==0){?>
			  站内暂时无事务处理！
              <?php }else{?>
					 <ul>
                     <?php if($checked_trade_num>0){?>
					 	<li>有<b class="bignum"><?=$checked_trade_num?></b>条订单未审核！<a href="checktradelist.php">处理</a></li>
                      <?php }?>
                      <?php if($wait_see_num>0){?>
						<li>有<b class="bignum"><?=$wait_see_num?></b>条短信未回复！<a href="kflist.php?keyword=%E7%BD%91%E7%AB%99%E5%AE%A2%E6%9C%8D" >查看</a></li>
                       <?php }?>
                      <?php if($wait_do_duihuan>0){?>
						<li>有<b class="bignum"><?=$wait_do_duihuan?></b>条兑换未处理！<a href="duihuan/admin.php?act=duihuan_list" >处理</a></li>
                        <?php }?>
                      <?php if($wait_do_tixian>0){?>
						<li>有<b class="bignum"><?=$wait_do_tixian?></b>条提现未处理！<a href="tixianlist.php">处理</a></li>
                        <?php }?>
					 </ul>	
               <?php }?>		  
			  </td>
            </tr>
          </table>
	 	</div>
		<!--end-->
		<!--监控中心-->
<div class="box_l">
	 	  <table cellspacing="0" width="100%" style="border:1px  solid #DCEAF7;">
            <tr>
              <td width="14%" height="25" bgcolor="E9F2FB" class="bigtext c_biaoti" >&nbsp;监控中心</td>
              <td width="86%" height="25" bgcolor="E9F2FB" class="bigtext" >
              <?php if(CHKEY==1){?>
              <span style="color:#009900">淘宝订单自动获取<b id="sessiontime"></b><a target="_blank" href="http://container.api.taobao.com/container?appkey=<?=GETKEY?GETKEY:MYAPPKEY?>"> 立刻续时</a></span>
              <script>
			  countDown(<?php $t=intval(time())-intval(SESSIONTIME);if($t>31536000){echo 31536000;}else{echo $t;}?>,function(msg) {document.getElementById('sessiontime').innerHTML = msg;});
			  </script>&nbsp;&nbsp;<a href="http://soft.duoduo123.com/help/inat/2011/1031/258.html" target="_blank" style="color:#666666">说明</a>
              <?php }?>
              </td>
            </tr>
            <tr>
              <td colspan="2" valign="top" class="jiank">
              <script>
            function tempData(){
			    $.get("center.php?commission=<?=round($web_zsy,2);?>&carry=<?=$tixian_sum?>&userfunds=<?=$need_to_pay?>&userno=<?=$user_sum?>",function(data){
                    alert('完成复位');
					$('#tempdata li b').html(0);
                })
			}
              </script>
              <?php if(APIJK=="1"){?>
              <ul>
					     <div style="width:100%; border-bottom:1px #DCEAF7 solid; clear:both; height:20px;line-height:20px; vertical-align:middle">
                         <span style="margin-left:5px; color:#274359">缓存监控</span>
                         </div>
					 	<li style="width:300px"><span class="left_txt">缓存文件大小：<span id="cacheSize">正在读取缓存大小...</span></span> <b style="margin-left:15px"><a id="doclear" style="color:#F00; text-decoration:none" href="doclear.php"></a></b>&nbsp;&nbsp;&nbsp;<a href="temp.php">设置</a></li>
					 </ul>
                     <div style="width:100%; height:1px; border-bottom:1px #DCEAF7 solid; clear:both"></div>
               <?php }?>
               
					 <ul id="tempdata">
					 <div style="width:100%; border-bottom:1px #DCEAF7 solid; clear:both; height:20px;line-height:20px; vertical-align:middle; padding-bottom:5px;">
                         <span style="margin-left:5px; color:#274359;">网站某时间段数据变化</span> <span><a href="javascript:tempData();" style="color:#FF0000; text-decoration:none" title="临时统计数据将清空为零">复位</a>  (便于站长监控网站运营状态)</span></div>
					 	<li>网站收益：<b style="color:#FF6600"><?=round(round($web_zsy,2)-$tempdata['commission'],2);?></b> 元</li>
						<li>提现金额：<b style="color:#009900"><?=round($tixian_sum-$tempdata['carry'],2)?></b> 元</li>
						<li>会员资金变动：<b style="color:#FF6600"><?=round($need_to_pay-$tempdata['userfunds'],2)?></b> 元</li>
						<li>会员数量：<b style="color:#FF6600"><a href="userlist.php" style="color:#FF6600">
					    <?=$user_sum-$tempdata['userno']?>
						</a></b> 位</li>
					 </ul>	
                     <div style="width:100%; height:1px; border-bottom:1px #DCEAF7 solid; clear:both"></div>
					 <ul>
					     <div style="width:100%; border-bottom:1px #DCEAF7 solid; clear:both; height:20px;line-height:20px; vertical-align:middle">
                         <span style="margin-left:5px; color:#274359">网站总数据</span>
                         </div>
					 	<li>总收益：<b style="color:#FF6600"><?php echo round($web_zsy,2);?> 元</b></li>
						<li>预计收益：<b style="color:#FF6600" ><?php echo round(($web_zsy-$need_to_pay-$tixian_sum),2);?> 元</b></li>
						<li>暂时收益：<b style="color:#FF6600"><?php echo round(($web_zsy-$tixian_sum),2);?> 元</b></li>
						<li>已支出：<b style="color:#009900"><?php echo $tixian_sum;?> 元</b></li>
                        <li>还需支出：<b style="color:#009900"><?php echo round($need_to_pay,2);?> 元</b></li>
					 </ul>	
                     <div style="width:100%; height:1px;  border-bottom:1px #DCEAF7 solid; clear:both"></div>
					 <ul>
                         <div style="width:100%; border-bottom:1px #DCEAF7 solid; clear:both; height:20px;line-height:20px; vertical-align:middle">
                         <span style="margin-left:5px; color:#274359">淘宝联盟</span>
                         </div>
					 	<li>总交易额：<b style="color:#FF6600"><?=$tao_goods_sum?> 元</b></li>
						<li>总收益：<b style="color:#FF6600"><?php echo round($taobao_zsy,2);?> 元</b></li>
						<li>总交易量：<b style="color:#FF6600"><?php echo $taobao_tradenum;?> 条</b></li>
						<li>已确认订单：<b style="color:#FF6600"><?php echo $tradenum_ok;?> 条</b></li>
						<li>未认领订单：<b style="color:#FF6600"><?php echo $taobao_tradenum-$tradenum_ok;?> 条</b></li>
					 </ul>	
                     <div style="width:100%; height:1px;  border-bottom:1px #DCEAF7 solid; clear:both;"></div>	
			    <ul>
                <div style="width:100%; border-bottom:1px #DCEAF7 solid; clear:both;height:20px;line-height:20px; vertical-align:middle"><span style="margin-left:5px;color:#274359">其他联盟</span></div>
					 	<li>总交易额：<b style="color:#FF6600"><?=$mall_goods_sum?> 元</b></li>
						<li>总收益：<b style="color:#FF6600"><?php echo round($mall_zsy,2);?> 元</b></li>
						<li>总交易量：<b style="color:#FF6600"><?php echo $mall_tradenum;?> 条</b></li>
						<li>有效订单：<b style="color:#FF6600"><?php echo $mall_order_ok;?> 条</b></li>
						<li>未核对订单：<b style="color:#FF6600"><?php echo $mall_order_no;?> 条</b></li>
                        <li>未认领订单：<b style="color:#FF6600"><?=$mall_no_user?> 条</b></li>
			    </ul>	  
			  </td>
            </tr>
          </table>
	 	</div>
		<!--end-->
		<!--最新管理操作记录-->
<div class="box_l">
	 	  <table cellspacing="0" width="100%" style="border:1px  solid #DCEAF7;">
            <tr>
              <td width="811" height="25" bgcolor="E9F2FB" class="bigtext c_biaoti" >&nbsp;最新管理操作记录 <a href="rizhi.php" style=" color:#FF0000">更多</a></td>
            </tr>
            <tr>
              <td colspan="2" valign="top" style="padding:3px 0px; color:#666666" class="bigtext">
	             <span class="left_txt">上次登录IP：<b style="color:#F00"><?=$lastloginip?></b> &nbsp;&nbsp;当前登录IP：<b style="color:#F00"><?=$_SERVER['REMOTE_ADDR']?></b></span>
				 <table width="100%" border=1 cellpadding=0 cellspacing=0 style="border-collapse: collapse" bordercolor="#DCEAF7">                
                    <tr>
                      <td width="11%"  height="30" align="center" bgcolor="#F2F2F2" class="bigtext"><strong>管理员</strong></td>
					  <td width="19%" align="center"  bgcolor="#F2F2F2" class="bigtext"><strong>操作IP</strong></td>
                      <td width="28%" align="center"  bgcolor="#F2F2F2" class="bigtext"><strong>执行内容</strong></td>
                      <td width="42%"  align="center" bgcolor="#F2F2F2" class="bigtext"><strong>执行时间</strong></td>
                    </tr>
					<?php foreach($adminlog as $row){?>
                    <tr>
                      <td width="11%"  height="30" align="center" bgcolor="#F2F2F2" class="bigtext"><?=$row['admin_name']?></td>
					  <td width="19%" align="center"  bgcolor="#F2F2F2" class="bigtext"><?=$row['ip']?></td>
                      <td width="28%" align="center"  bgcolor="#F2F2F2" class="bigtext"><?=$row['act_name']?></td>
                      <td width="42%"  align="center" bgcolor="#F2F2F2" class="bigtext"><?=date('Y-m-d H:i:s',$row['time'])?></td>
                    </tr>
                    <?php }?>
                </table>
			  </td>
            </tr>
          </table>
	 	</div>
		<!--end-->
	</div>
	<div class="c_right">
	<!--版本信息-->
	 	<div class="box_r">
	 	  <table cellspacing="0" width="100%" style="border:1px  solid #DCEAF7;">
            <tr>
              <td width="811" height="25" bgcolor="E9F2FB" class="bigtext c_biaoti" >&nbsp;版本信息</td>
            </tr>
            <tr>
              <td colspan="2" valign="top"><span class="left_txt">&nbsp;<img src="images/ts.gif" width="12" height="12" /> 版本：<span class="banben">V7.4</span>_UTF-8 更新日期：</span> <span class="S3"><?=$banben?></span> 
			    <div style=" margin:5px 10px; clear:both; height:80px; line-height:20px; vertical-align:middle"><?php if($open=='1'){?>
			      <iframe frameborder="0" marginheight="0" marginwidth="0" border="0" scrolling="No" height="80" width="100%" src="http://soft.duoduo123.com/soft_info/updata.html" ></iframe>
			      <?php }else{echo "获取版本信息失败，请刷新或稍候再试。";}?>
	          </div></td>
            </tr>
          </table>
	 	</div>
		<!--end-->
		<!--商业授权查询-->
<div class="box_r">
	 	  <table cellspacing="0" width="100%" style="border:1px  solid #DCEAF7;">
            <tr>
              <td width="811" height="25" bgcolor="E9F2FB" class="bigtext c_biaoti" >&nbsp;商业授权查询&nbsp;&nbsp;<span style="font-size:12px; font-weight:normal">查询授权唯一域名:duoduo123.com</span> 
             </td>
            </tr>
            <tr>
              <td colspan="2" valign="top" style="padding:3px 10px;"><div align="left"><span style="line-height:25px;">当前授权给： <span style="color:#FF0000"><?=defined('MYUSERNICK')?MYUSERNICK:'';?></span>&nbsp;&nbsp; <a href="http://pay.duoduo123.com/aut/aut.php?nick=<?php echo urlencode(MYUSERNICK);?>" target="_blank"><img src="images/biz.gif" width="102" height="23" border="0" align="absmiddle" /></a></span><span style="line-height:25px;"></span></div></td>
            </tr>
          </table>
	 	</div>
		<!--end-->
	<!--官方动态-->
		<div class="box_r">
	 	  <table cellspacing="0" width="100%" style="border:1px  solid #DCEAF7;">
            <tr>
              <td width="811" height="25" bgcolor="E9F2FB" class="bigtext c_biaoti" >&nbsp;官方公告</td>
            </tr>
            <tr>
              <td colspan="2" valign="top" style="padding:3px 10px;">
	<?php if($open=='1'){?><iframe frameborder="0" marginheight="0" marginwidth="0" border="0" scrolling="No" height="166" width="100%" src="http://soft.duoduo123.com/soft_info/gonggao.html" ></iframe><?php }else{echo "获取信息失败，请刷新或稍候再试。";}?>		  
			  </td>
            </tr>
          </table>
		</div>
		<!--end-->
	<!--最新管理操作记录-->
	<!--站长推荐-->
		<div class="box_r">
	 	  <table cellspacing="0" width="100%" style="border:1px  solid #DCEAF7;">
            <tr>
              <td width="811" height="25" bgcolor="E9F2FB" class="bigtext c_biaoti" >&nbsp;站长推荐</td>
            </tr>
            <tr>
              <td colspan="2" valign="top" style="padding:3px 10px;">
<iframe frameborder="0" marginheight="0" marginwidth="0" border="0" scrolling="No" height="166" width="100%" src="http://soft.duoduo123.com/soft_info/ad.html" ></iframe>			  
			  </td>
            </tr>
          </table>
		</div>
		<!--end-->
	 </div>
	 	</td>

    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>

  <tr>

    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>

    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>

    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>

<link href="js/facebox.css" media="screen" rel="stylesheet" type="text/css" />

<div id="mydiv" style="display:none; font:12px; color:#666666;">

<br />

首先更改后台路径admin、删除install目录及文件。<br /><br />

第一步：网站基本设置：将网站名称等设置完成。 <a href="webset.php">设置</a><br /><br />

第二步：淘宝客设置：将淘宝API调用相关设置完成。 <a href="taobaokeset.php">设置</a><br /><br />

第三步：联盟设置：实现B2C商城返利必要步骤。 <a href="mall/mall_set.php">设置</a><br /><br />

第四步：公告、帮助信息、及资讯添加。 <a href="article/article.add.php?act=add">添加</a><br /><br />

第五步：首页幻灯片设置：将首页幻灯片设置为自己想要的图片和链接。 <a href="slides_list.php">设置</a><br /><br />

第六步：站点广告设置：位置和大小可参考模板，如果不需要可全部清空。 <a href="adlist.php">设置</a><br /><br />

第七步：友情链接：增加友情链接。 <a href="yqljlist.php">设置</a><br /><br />

第八步：合作链接：增加合作链接。 <a href="hzhblist.php">设置</a><br /><br />

第九步：logo替换。查看LOGO图片更是及路径，默认模板为logo.gif，模板目录即template/default/images/logo.gif；<br /><br />

 OK，您的网站基本设置完成。其他可按自己需要添加或修改。<br /><br />

如果自己不熟悉，可安装我们默认数据包，然后根据需要删减。<br /><br />

</div>
</body>
</html>